Skip to content

Add constant initializers that parse strings #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

CodaFi
Copy link
Member

@CodaFi CodaFi commented Sep 27, 2017

No description provided.

@CodaFi
Copy link
Member Author

CodaFi commented Sep 29, 2017

⛵️

@CodaFi CodaFi merged commit 1f04fd4 into llvm-swift:master Sep 29, 2017
@CodaFi CodaFi deleted the string-cheese branch September 29, 2017 18:07
/// - returns: A value representing a constant initialized with the result of
/// parsing the string as a floating point number.
public func constant(_ value: String) -> Constant<Floating> {
return value.withCString { cString in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think this needs withCString, but 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants